package com.udaos.modules.account.services;

import java.util.List;

import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.IocBean;

import com.udaos.common.base.Service;
import com.udaos.models.account.Ud_account;

/**
 * 支付账户Service
 * 
 * @author mutaotao
 * @time 2016-11-08 11:23:10
 * 
 */
@IocBean(args = { "refer:dao" })
public class UdAccountService extends Service<Ud_account> {
	public UdAccountService(Dao dao) {
		super(dao);
	}
	
	/**
	 * 获取有效的支付账户列表
	 * @return
	 */
	public List<Ud_account> find() {
		Cnd cnd = Cnd.NEW();
		cnd.and("delFlag", "=", "0");
		return dao().query(Ud_account.class, cnd);
	}
}